currentPanel="";
        
function setCurrentPanel(panelType){
    currentPanel=panelType;
}
function switchPanel(source){
    var id=source.getAttribute('id');
    $("#"+currentPanel).removeClass('buttonActiveOverride');
    $("#"+currentPanel).addClass('cursorSelect');
    
    setCurrentPanel(id);
    setAdditionalTableSubmitArgument(id);
    $("#"+currentPanel).addClass('buttonActiveOverride');
    $("#"+currentPanel).removeClass('cursorSelect');
    var event={};
    event.keyCode=13;
    tableSubmit('packageTableId',event);
}

function submitForm(formId){
    $("#"+formId).submit();
}